package com.jiang.专题.数组.Q169;

import java.util.Arrays;

/**
 * @author Jiang
 * @version 1.0
 * @date 2024/12/14 20:01
 */
class Solution {
    public int majorityElement(int[] nums) {
        Arrays.sort(nums);
        return nums[nums.length / 2];
    }
}
